Inheritance diagram for Exponent::GUI::Controls::CMomentaryButton:

Definition at line 32 of file CMomentaryButton.hpp.
| Exponent::GUI::Controls::CMomentaryButton::CMomentaryButton | ( | IControlRoot * | root, | |
| const long | uniqueId, | |||
| const CRect & | area, | |||
| IActionListener * | listener = NULL | |||
| ) |
Construction
| root | The root control that this control is being added to | |
| uniqueId | The unique Identifier of this control or CCONTROL_NO_ID_REQUIRED if no id is required | |
| area | The area of this control relative to the root controls top left | |
| listener | The action listener |
| virtual Exponent::GUI::Controls::CMomentaryButton::~CMomentaryButton | ( | ) | [virtual] |
Destruction
| virtual void Exponent::GUI::Controls::CMomentaryButton::drawControl | ( | CGraphics & | graphics | ) | [virtual] |
Draw the controls
| graphics | The graphics context |
Reimplemented from Exponent::GUI::Controls::CControl.
| virtual void Exponent::GUI::Controls::CMomentaryButton::handleDoubleClick | ( | CMouseEvent & | event | ) | [virtual] |
Handle double click
| event | The event to handle |
Reimplemented from Exponent::GUI::Controls::CControl.
| virtual void Exponent::GUI::Controls::CMomentaryButton::handleLeftButtonDown | ( | CMouseEvent & | event | ) | [virtual] |
Handle left button being clicked
| event | The event to handle |
Reimplemented from Exponent::GUI::Controls::CControl.
| virtual void Exponent::GUI::Controls::CMomentaryButton::handleLeftButtonUp | ( | CMouseEvent & | event | ) | [virtual] |
Handle left button being released
| event | The event to handle |
Reimplemented from Exponent::GUI::Controls::CControl.
| virtual void Exponent::GUI::Controls::CMomentaryButton::handleMouseMovement | ( | CMouseEvent & | event | ) | [virtual] |
Handle mouse movement
| event | The event to handle |
Reimplemented from Exponent::GUI::Controls::CControl.
| virtual void Exponent::GUI::Controls::CMomentaryButton::setDownImage | ( | IImage * | theImage | ) | [virtual] |
Set the off image
| theImage | The image to use when the button is in down state |
| void Exponent::GUI::Controls::CMomentaryButton::setLabelText | ( | const CString & | text | ) | [inline] |
Set the label text
| text | The text to display on the button if there is no image |
Definition at line 119 of file CMomentaryButton.hpp.
References m_labelText.
| virtual void Exponent::GUI::Controls::CMomentaryButton::setValue | ( | const double | value | ) | [virtual] |
Set the value of the button
| value | The value to display |
Reimplemented from Exponent::GUI::Controls::CControl.
| virtual void Exponent::GUI::Controls::CMomentaryButton::useCursorChange | ( | const bool | use = true |
) | [inline, virtual] |
Should we use cursor change?
| use | If true then when mouse over occurs mouse is changed to hand cursor |
Definition at line 65 of file CMomentaryButton.hpp.
References m_cursorChange.
bool Exponent::GUI::Controls::CMomentaryButton::m_cursorChange [protected] |
Should the cursor change
Definition at line 129 of file CMomentaryButton.hpp.
Referenced by useCursorChange().
IImage* Exponent::GUI::Controls::CMomentaryButton::m_downImage [protected] |
The off image
Definition at line 127 of file CMomentaryButton.hpp.
CString Exponent::GUI::Controls::CMomentaryButton::m_labelText [protected] |
Text drawn on the face of the button if no image is set
Definition at line 130 of file CMomentaryButton.hpp.
Referenced by setLabelText().
bool Exponent::GUI::Controls::CMomentaryButton::m_state [protected] |
The current state (on or off)
Definition at line 128 of file CMomentaryButton.hpp.